package com.crm.entity;


import java.util.HashSet;
import java.util.Set;

/**
 * Users entity. @author MyEclipse Persistence Tools
 */

public class Users implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String userName;
	private String userPassword;
	private Integer userRoleId;
	private Integer isDel;
	private Set roles = new HashSet(0);
	private Set salemanagers = new HashSet(0);

	// Constructors

	/** default constructor */
	public Users() {
	}

	/** full constructor */
	public Users(String userName, String userPassword, Integer userRoleId,
			Integer isDel, Set roles, Set salemanagers) {
		this.userName = userName;
		this.userPassword = userPassword;
		this.userRoleId = userRoleId;
		this.isDel = isDel;
		this.roles = roles;
		this.salemanagers = salemanagers;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return this.userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public Integer getUserRoleId() {
		return this.userRoleId;
	}

	public void setUserRoleId(Integer userRoleId) {
		this.userRoleId = userRoleId;
	}

	public Integer getIsDel() {
		return this.isDel;
	}

	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}

	public Set getRoles() {
		return this.roles;
	}

	public void setRoles(Set roles) {
		this.roles = roles;
	}

	public Set getSalemanagers() {
		return this.salemanagers;
	}

	public void setSalemanagers(Set salemanagers) {
		this.salemanagers = salemanagers;
	}

}